#!/bin/sh

used=`/usr/local/nagios/libexec/check_nrpe -H $1 -c check_mem_used | awk '{print $5}'|awk -F '(' '{print $2}'`
free=`/usr/local/nagios/libexec/check_nrpe -H $1 -c check_mem_free | awk '{print $5}'|awk -F '(' '{print $2}'`

echo `expr $used + $free`;
